<!--
 * @Description: 主页
 * @version: 
 * @Author: m
 * @LastEditors: m
-->
<template>
	<div id="home">
		<van-sticky>
			<navbar :title="title" :border="false" />
		</van-sticky>

		<div class="container"></div>
	</div>
</template>

<script>
import navbar from "@/components/navbar.vue";
import { homeList } from "@/api/home";

export default {
	components: {
		navbar,
	},
	data() {
		return {
			title: "首页",
			value: "",
		};
	},
	mounted() {
		this.getList();
	},
	methods: {
		getList() {
			getUserMess()
				.then((res) => {
					//请求成功
				})
				.catch((err) => {
					// 请求失败
					console.log(err);
					return this.$toast.fail("网络连接错误,请稍后重试!");
				});
		},
	},
};
</script>
<style lang="scss">
#home {
	.van-nav-bar {
		background-color: #f8ce39;
	}

	.van-nav-bar__title {
		color: #333333;
	}

	.van-nav-bar__left {
		display: none;
	}
}
</style>
